 @extends('lsyouts.art')

 @section('content')

<div class="container-fluid">


@foreach( $data as $art)
  <a class="btn btn-primary" href="/index/create">添加文章</a>

 <div class="panel panel-default">
  <div class="panel-body">
    {{$art->title}}
    <a href="/index/{{$art->id}}" class="btn btn-info">阅读</a>
    <a href="/index/{{$art->id}}/edit" class="btn btn-info">修改</a>

      <form action="/index/{{$art->id}}" method="post" style="display: inline-block;">
         {!! csrf_field() !!}
            <input type="hidden" name="_method" value="DELETE">
            <button type="submit" class="btn btn-danger">删除</button>
        </form>
    </div>
    </div>
   @endforeach
  
</div>
  {!!$data->render() !!}


 


@endsection


